Utils::CommandLine Class
class Utils::CommandLineThe CommandLine class represents a command line of a QProcess or similar utility. More...
| Header: | #include <commandline.h> |
Static Public Members
| Utils::CommandLine | inShell(const Utils::CommandLine &cmd) |
| Utils::CommandLine | inShell(const class QString &script, const Utils::FilePath &device = {}) |
Detailed Description
Member Function Documentation
[static] Utils::CommandLine CommandLine::inShell(const Utils::CommandLine &cmd)
Returns a command line that runs cmd through the shell of the device that the executable of cmd is on, cmd.exe /v:off /s /c on Windows and /bin/sh -c elsewhere.
This is needed when cmd contains shell constructs, such as commands joined by addCommandLineWithAnd().
[static] Utils::CommandLine CommandLine::inShell(const class QString &script, const Utils::FilePath &device = {})
Returns a command line that runs script through the shell of device, cmd.exe /v:off /s /c on Windows and /bin/sh -c elsewhere. The default is the shell of the host.